# coding=utf-8

# while 语句6行代码
print('\nwhile循环99乘法表')
i = 1
while i <= 9:
    for j in range(1, i + 1):
        print(f'{j}X{i}={j * i}' + ' ', end=' ')
    print('\t')
    i += 1

# 双for循环5行代码
print('\nfor循环99乘法表')
for i in range(9):
    i += 1
    for j in range(1, i + 1):
        print(f'{j}X{i}={i * j}' + ' ', end=' ')
    print('\t')
